body {
    margin: 0 auto;
    min-width: 540px;
    max-width: 320px;
    background-color: #f2f2f2;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    font: normal 14px/1.5 Tahoma;
    color: #000;
}

a {
    text-decoration: none;
    color: #222;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header {
    display: flex;
    position: fixed;
    box-sizing: border-box;
    min-width: 540px;
    max-width: 320px;
    height: 44px;
    background-color: #f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.search {
    position: relative;
    height: 26px;
    margin: 7px 10px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 20%);
    border-radius: 5px;
    flex: 1;
}

.search input {
    position: absolute;
    top: 5px;
    left: 25px;
    border: 0;
    background-color: #f6f6f6;
    width: 200px;
    font-size: 12px;
    outline: none;
}

.search::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) no-repeat -59px -279px;
    background-size: 104px auto;
}

header a {
    width: 44px;
    height: 44px;
    color: #2eaae0;
    text-decoration: none;
}

header a::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    margin: 4px 12px;
    background: url(../images/sprite.png) no-repeat -59px -195px;
    background-size: 104px auto;
}

header a::after {
    content: '我的';
    display: block;
    margin: -5px 8px;
}

.ad {
    padding-top: 44px;
}

.ad img {
    width: 100%;
}

.nav {
    display: flex;
    height: 64px;
    padding: 0;
    margin: 3px 4px;
    background-color: #fff;
    border-radius: 8px;
}

.nav li {
    flex: 1;
    list-style: none;
}

.nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
    color: #222;
    margin-top: 8px;
}

.nav li a .pic {
    width: 32px;
    height: 32px;
}

.nav li:nth-child(1) a .pic {
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}

.nav li:nth-child(2) a .pic {
    background: url(../images/localnav_bg.png) no-repeat 0 -32px;
    background-size: 32px auto;
}

.nav li:nth-child(3) a .pic {
    background: url(../images/localnav_bg.png) no-repeat 0 -64px;
    background-size: 32px auto;
}

.nav li:nth-child(4) a .pic {
    background: url(../images/localnav_bg.png) no-repeat 0 -96px;
    background-size: 32px auto;
}

.nav li:nth-child(5) a .pic {
    background: url(../images/localnav_bg.png) no-repeat 0 -128px;
    background-size: 32px auto;
}

nav {
    width: 100%;
    margin: 3px 0px;
    border-radius: 8px;
    overflow: hidden;
}

nav .nav1 {
    display: flex;
    height: 88px;
    margin-bottom: 4px;
    overflow: hidden;
}

nav .nav1 .hotel {
    display: flex;
    flex: 1;
    flex-direction: column;
}

nav .nav1 .hotel a {
    box-sizing: border-box;
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    text-shadow: 1px 1px rgba(0, 0, 0, 20%);
}

nav .nav1 .hotel:nth-child(1) a {
    background: url(../images/hotel.png) no-repeat center bottom;
    background-size: 121px auto;
}

nav .nav1 .hotel:nth-child(-n+2) {
    border-right: 1px solid #fff;
}

nav .nav1 .hotel:nth-child(n+2) a:nth-child(1) {
    border-bottom: 1px solid #fff;
}

.nav1:nth-child(1) {
    background: -webkit-linear-gradient(left, #FA5A55, #FA994D);
}

.nav1:nth-child(2) {
    background: -webkit-linear-gradient(left, #4B90ED, #53bced);
}

.nav1:nth-child(3) {
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    margin: 0 4px;
    background-color: #fff;
    box-shadow: 0 4px 5px rgba(0, 0, 0, .2);
}

.subnav li {
    flex: 20%;
}

.subnav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
}

.subnav li a .subnav-items {
    width: 28px;
    height: 28px;
    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 28px auto;
}

.subnav li a .subnav-font {
    font-size: 12px;
}

.hot {
    width: 100%;
    margin: 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.hot .hot-top {
    position: relative;
    border-bottom: 1px solid #ccc;
}

.hot-top h2 {
    height: 44px;
}

.hot .hot-top div {
    position: absolute;
    width: 75px;
    height: 15px;
    top: 24px;
    left: 5px;
    background: url(../images/hot.png) no-repeat 0 -18px;
    background-size: 73px auto;
}

.hot .hot-top a {
    position: absolute;
    top: 15px;
    right: 10px;
    padding: 5px 20px 5px 5px;
    color: #fff;
    font-size: 14px;
    border-radius: 15px;
    background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
}

.hot .hot-top a::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 91px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(135deg);
}

.hotimg {
    display: flex;
}

.hotimg:nth-child(-n+2) {
    border-bottom: 1px solid #eee;
}

.hotimg a {
    flex: 1;
}

.hotimg a:nth-child(1) {
    border-right: 1px solid #eee;
}

.hotimg a img {
    width: 100%;
}